#pragma once

class TCPStream
{
public:
	TCPStream(int sock, bool alive = true);
	~TCPStream(void);

	void Write(char* buffer, int offset, int length);
	void Flush();
	int Read(char* buffer, int offset, int length);
	void BeginRead();
	void EndRead();
	void Dispose();
private:
	int _sock;
	bool _alive;
};
